package dto

import (
	"github.com/gin-gonic/gin"
	"tino_manager/public"
)

type ContractSaveInput struct {
	Address   string `json:"address" form:"address" comment:"地址" validate:"required"`
	HomeTitle string `json:"home_title" form:"home_title" comment:"首页标题" validate:"required"`
	Tip       string `json:"tip" form:"tip" comment:"场地温馨提示" validate:"required"`
	Phone     string `json:"phone" form:"phone" comment:"联系方式" validate:"required"`
	Mark      string `json:"mark" form:"mark" comment:"预约须知" validate:"required"`
}

func (params *ContractSaveInput) BindValidParam(c *gin.Context) error {
	return public.DefaultGetValidParams(c, params)
}
